/**
 * @program: My Application
 * @description: ...
 * @author: Yumaoo
 * @create: 2024-07-03 01:34
 **/
package com.example.myapplication;

import java.io.Serializable;

public class Router implements Serializable {
    private String SSID;
    private String BSSID;

    public Router(String SSID, String BSSID) {
        this.SSID = SSID;
        this.BSSID = BSSID;
    }

    public String getSSID() {
        return SSID;
    }

    public String getBSSID() {
        return BSSID;
    }

    @Override
    public String toString(){
        return SSID;
    }
    @Override
    public boolean equals(Object arg){
        return ((Router) arg).getBSSID().equals(this.getBSSID());
    }


    @Override
    public int hashCode(){
        return  this.BSSID.hashCode();
    }

}
